package com.qianji.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 钟丽诗
 * @Date 2021.3.12
 */

@ApiModel("修改用户属性类")
@Data
public class UserUpdateVO implements Serializable {

    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "主键id",example = "1")
    private Long id;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    @NotNull(message = "充值金额不能为空")
    @ApiModelProperty("充值金额")
    private Double price;


}
